%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This file is part of the book
%%
%% Primes and Factorization
%% https://code.google.com/p/factor-book/
%%
%% Copyright (C) 2010 Minh Van Nguyen <nguyenminh2@gmail.com>
%%
%% See the file COPYING for copying conditions. See the file LICENSE
%% for the terms under which the whole book is licensed.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[a4paper,twoside,12pt]{book}

\usepackage{mystyle}

\begin{document}

\pagenumbering{alph}

\title{\Huge\bf Primes and Factorization}
\author{\Large Minh Van Nguyen}
\date{%
  Version~\documentEdition \\
  \today
}
\maketitle

%% Copyright page
{\thispagestyle{empty}
  \input{tex/notice.tex} \\\\
  \textbf{Edition} \\
  Version~\documentEdition \\
  \today
}

%% Front matter
\frontmatter
%% Setting the TOC depth: only list chapters and sections
\setcounter{tocdepth}{1}
\tableofcontents
\let\cleardoublepage\clearpage
\listofalgorithms
\addcontentsline{toc}{chapter}{List of Algorithms}
\let\cleardoublepage\clearpage

%% Main document body
\mainmatter
\input{tex/unique-factorization.tex}

%% Appendices
\appendix
\input{tex/license-gfdl.tex}

%% Back matter
\backmatter
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
